
import {
    Switch,
    Route,
    Link
} from 'react-router-dom'

import UserInfo from './users/userInfo'
import AddUserInfo from './users/adduserInfo'

export default ()=>{
    return( 
    <div>
      <h2>Users(用户界面)</h2>
     <hr/>
     <div>
         <ul>
             <li>
                 <Link to="/users/showInfo">显示用户信息</Link>
             </li>
             <li>
             <Link to="/users/addInfo">添加用户信息</Link>
             </li>
         </ul>
     </div>
     <div>
        <Switch>
            <Route path='/users/showInfo' component={UserInfo}></Route>
            <Route path="/users/addInfo" component={AddUserInfo}></Route>
        </Switch>

     </div>

    </div>
    )
  }